+opencc (0.2.0-2) unstable; urgency=low
+
+ * Fix "Please fix FTBFS on mips, ppc, s390 and sparc" (Closes: #624562)
+ * debian/control: bump standards version to 3.9.2.
+
+ -- Asias He <asias.hejun@gmail.com> Mon, 16 May 2011 20:46:03 +0800
+
opencc (0.2.0-1) unstable; urgency=low
* New upstream release
Priority: optional
Maintainer: IME Packaging Team <pkg-ime-devel@lists.alioth.debian.org>
Uploaders: LI Daobing <lidaobing@debian.org>, Asias He <asias.hejun@gmail.com>
-Build-Depends: debhelper (>= 7.0.50~), autotools-dev, cmake
-Standards-Version: 3.9.1
+Build-Depends: debhelper (>= 7.0.50~), autotools-dev, cmake, quilt
+Standards-Version: 3.9.2
Section: libs
Homepage: http://code.google.com/p/opencc
Vcs-Git: git://git.debian.org/git/pkg-ime/opencc.git
--- /dev/null
+--- a/src/encoding.c
++++ b/src/encoding.c
+@@ -130,11 +130,7 @@
+ pucs4 = ucs4 + freesize;
+ }
+
+- #if BYTEORDER == LITTLE_ENDIAN
+- *pucs4 = (byte[3] << 24) + (byte[2] << 16) + (byte[1] << 8) + byte[0];
+- #else
+- *pucs4 = (byte[0] << 24) + (byte[1] << 16) + (byte[2] << 8) + byte[3];
+- #endif
++ *pucs4 = (byte[3] << 24) + (byte[2] << 16) + (byte[1] << 8) + byte[0];
+
+ pucs4 ++;
+ freesize --;
+@@ -174,13 +170,8 @@
+ ucs4_t c = ucs4[i];
+ ucs4_t byte[4] =
+ {
+- #if BYTEORDER == LITTLE_ENDIAN
+ (c >> 0) & BITMASK(8), (c >> 8) & BITMASK(8),
+ (c >> 16) & BITMASK(8), (c >> 24) & BITMASK(8)
+- #else
+- (c >> 24) & BITMASK(8), (c >> 18) & BITMASK(8),
+- (c >> 8) & BITMASK(8), (c >> 0) & BITMASK(8)
+- #endif
+ };
+
+ size_t delta = 0;
--- /dev/null
+fix-big-endian-build.diff
#!/usr/bin/make -f
%:
- dh $@
+ dh $@ --with quilt
override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON